package com.hj.monitor.domain.model.entity;

import lombok.*;

import java.util.List;

/**
 * 监视流设计器实体
 *
 * @author 黄健
 * @date 2024/12/06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MonitorFlowDesignerEntity {

    private String monitorId;
    private List<Node> nodeList;
    private List<Link> linkList;

    @Getter
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Node {
        // 节点ID
        private String monitorNodeId;
        // 节点坐标
        private String loc;
    }

    @Getter
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Link {
        private String from;
        private String to;
        private String key;
        private String text;

    }


}